package com.rzl.expense.expense.service.impl;

import java.util.List;
import com.rzl.expense.common.utils.DateUtils;
import com.rzl.expense.expense.domain.EleSiteCode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.rzl.expense.expense.mapper.ElePaymentMapper;
import com.rzl.expense.expense.domain.ElePayment;
import com.rzl.expense.expense.service.IElePaymentService;

/**
 * 报账点缴费信息Service业务层处理
 * 
 * @author expense
 * @date 2024-11-28
 */
@Service
public class ElePaymentServiceImpl implements IElePaymentService 
{
    @Autowired
    private ElePaymentMapper elePaymentMapper;

    /**
     * 查询报账点缴费信息
     * 
     * @param billaccountpaymentdetailId 报账点缴费信息主键
     * @return 报账点缴费信息
     */
    @Override
    public ElePayment selectElePaymentByBillaccountpaymentdetailId(String billaccountpaymentdetailId)
    {
        return elePaymentMapper.selectElePaymentByBillaccountpaymentdetailId(billaccountpaymentdetailId);
    }

    /**
     * 查询报账点缴费信息列表
     * 
     * @param elePayment 报账点缴费信息
     * @return 报账点缴费信息
     */
    @Override
    public List<ElePayment> selectElePaymentList(ElePayment elePayment)
    {
        return elePaymentMapper.selectElePaymentList(elePayment);
    }

    /**
     * 新增报账点缴费信息
     * 
     * @param elePayment 报账点缴费信息
     * @return 结果
     */
    @Override
    public int insertElePayment(ElePayment elePayment)
    {
        return elePaymentMapper.insertElePayment(elePayment);
    }

    /**
     * 修改报账点缴费信息
     * 
     * @param elePayment 报账点缴费信息
     * @return 结果
     */
    @Override
    public int updateElePayment(ElePayment elePayment)
    {
        elePayment.setUpdateTime(DateUtils.getNowDate());
        return elePaymentMapper.updateElePayment(elePayment);
    }

    /**
     * 批量删除报账点缴费信息
     * 
     * @param billaccountpaymentdetailIds 需要删除的报账点缴费信息主键
     * @return 结果
     */
    @Override
    public int deleteElePaymentByBillaccountpaymentdetailIds(String[] billaccountpaymentdetailIds)
    {
        return elePaymentMapper.deleteElePaymentByBillaccountpaymentdetailIds(billaccountpaymentdetailIds);
    }

    /**
     * 删除报账点缴费信息信息
     * 
     * @param billaccountpaymentdetailId 报账点缴费信息主键
     * @return 结果
     */
    @Override
    public int deleteElePaymentByDate(String[] currentDate)
    {
        return elePaymentMapper.deleteElePaymentByDate(currentDate[0],currentDate[1]);
    }




    @Override
    public void batchElePayment(List<ElePayment> list)
    {

         elePaymentMapper.batchElePayment(list);
    }

    @Override
    public void batchEleSiteCode(List<EleSiteCode> list)
    {

         elePaymentMapper.batchEleSiteCode(list);
    }

    @Override
    public void insertEleSiteCode(EleSiteCode list)
    {

         elePaymentMapper.insertEleSiteCode(list);
    }


}
